<template>
  <el-menu :default-active="activeIndex" active-text-color="#ffd04b" background-color="#545c64" class="menu"
           mode="vertical" router text-color="#fff">
    <div class="brand">
      <font-awesome-icon icon="store"/>
      便利店
    </div>
    <el-menu-item index="/store">
      <font-awesome-icon icon="shopping-cart"/>
      销售查询
    </el-menu-item>
    <el-menu-item index="/store/stock">
      <font-awesome-icon icon="chart-pie"/>
      库存查询
    </el-menu-item>
    <el-menu-item index="/store/promotion">
      <font-awesome-icon icon="tags"/>
      促销活动
    </el-menu-item>
  </el-menu>
</template>
<script>
export default {
  name: 'StoreMenuBar',
  data () {
    return {
      activeIndex: '/store'
    }
  },
  mounted () {
    this.activeIndex = this.$route.path
  },
  methods: {}
}
</script>
<style scoped>
.menu {
  height: 100%;
}

.brand {
  width: 100%;
  height: 60px;
  line-height: 60px;
  color: whitesmoke;
  font-size: 1.7rem;
  text-align: center;
}

.brand img {
  height: 50px;
  border-radius: 50%;
  padding: 5px;
}
</style>
